import requests
import json 

def get_newshy():
    a = requests.get("https://news.topurl.cn/api")
    a=json.loads(a.text)
    news = a['data']['newsList']
    for x in news:
        yield x['title']
                                